package cn.ainit.edi.entity;

import java.io.Serializable;

public class SysDBSchemaCodeListPK implements Serializable{
	private static final long serialVersionUID = -5243449377662730811L;

	private String schemaTypeId;
	
	private String tableName;
	
	private String columnName;

	
	
	public String getSchemaTypeId() {
		return schemaTypeId;
	}

	public void setSchemaTypeId(String schemaTypeId) {
		this.schemaTypeId = schemaTypeId;
	}

	public String getTableName() {
		return tableName;
	}

	public void setTableName(String tableName) {
		this.tableName = tableName;
	}

	public String getColumnName() {
		return columnName;
	}

	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	@Override
	public boolean equals(Object obj) {
		if (obj == null) {
			return false;
		}
		if (this == obj) {
			return true;
		}
		if (obj instanceof SysDBSchemaCodeListPK) {
			SysDBSchemaCodeListPK other = (SysDBSchemaCodeListPK)obj;
			return this.schemaTypeId.equals(other.schemaTypeId)
				&& this.tableName.equals(other.tableName)
				&& this.columnName.equals(other.columnName);
		}
		return false;
	}
	
	@Override
	public int hashCode() {
		return this.schemaTypeId.hashCode() 
				+ this.tableName.hashCode() 
				+ this.columnName.hashCode();
	}
}
